<template>
    <div class="newsflashdetails">
        <h2 class="title">{{postsInfodata.title}}</h2>
        <p class="time">
            <time>{{postsInfodata.created_at}}</time>
        </p>
        <hr>
        <div class="aont">
            <div v-html="postsInfodata.content"></div>
        </div>
    </div>
</template>

<script>
import { postsInfo } from '@/api/software';
export default {
    name: "newsflashdetails",
    data() {
        return {
            postsInfodata:"",
        };
    },
    methods: {
        postsInfoget(data){
            let _data = {
                posts_id: data,
                type: 2,
            };
            postsInfo(_data).then(res => {
                    this.postsInfodata = res;
            }).catch(err => {
               
            });
        }
    },
    created(){
        this.postsInfoget(this.$route.query.id);
    },
};
</script>

